#include <iostream>
#include <vector>

using namespace std;

int main ()
{
	vector<int> buf(10, 10);
	vector<int>::iterator it1 = buf.begin();
	vector<int>::iterator it2 = buf.end();
	it2--;
	buf.resize(int(it2 - it1));
	cout << it2 - it1 << endl;
	cout << buf.size() << endl;
	return 0;
}

